﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;

namespace Mesuro.Graphing.Utilities {
	public class Utils {

		public static readonly RoutedEvent EnterPressedEvent = EventManager.RegisterRoutedEvent( "EnterPressed", RoutingStrategy.Bubble, typeof( RoutedEventHandler ), typeof( Utils ) );
		public static void AddEnterPressedHandler( UIElement el, RoutedEventHandler handler ) {
			el.AddHandler( EnterPressedEvent, handler );
		}
		public static void RemoveEnterPressedHandler( UIElement el, RoutedEventHandler handler ) {
			el.RemoveHandler( EnterPressedEvent, handler );
		}

	}
}
